package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyCollect;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyCollectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(StrategyCollect record);

    StrategyCollect selectByPrimaryKey(Integer id);

    List<StrategyCollect> selectAll();

    int updateByPrimaryKey(StrategyCollect record);

    StrategyCollect selectByUserIdAndStrategyId(@Param("userId") Long userId, @Param("strategyId") Long strategyId);

    int selectCount(Long strategyId);
}